package com.asktgapp.user.activity;

import android.support.v4.app.Fragment;

import com.asktgapp.base.BaseFragmentActivity;
import com.asktgapp.modulebase.common.util.PreferencesUtil;
import com.asktgapp.user.fragment.ServiceOrderFragment;
import com.asktgapp.user.fragment.ServiceOrderUserFragment;

/**
 * 上门服务订单页面
 */

public class ServiceOrderActivity extends BaseFragmentActivity {

    @Override
    protected Fragment getFragment() {
        if (PreferencesUtil.getBoolean(this, PreferencesUtil.KEY_IS_ENGINEER))
            return new ServiceOrderFragment();
        else
            return ServiceOrderUserFragment.newInstance();
    }

    @Override
    protected String getToolbarTitle() {
        if (PreferencesUtil.getBoolean(this, PreferencesUtil.KEY_IS_ENGINEER))
            return "";
        else
            return "上门服务订单";
    }

}
